<?php /* Smarty version 2.6.25, created on 2020-11-17 17:40:44
         compiled from admin/yice_deng.index.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div id="contents">


<form name="myform" jstype="vali" action="?ct=yice_indexad&ac=<?php echo $this->_tpl_vars['zhixing']['go']; ?>
" method="POST"  enctype="multipart/form-data">

<table width="100%" class="form">
<tr>
  <td>排序：</td>
  <td><input type='input' name='paixu' class="text s"  <?php if (empty ( $this->_tpl_vars['list']['paixu'] )): ?>value='99'<?php else: ?>value='<?php echo $this->_tpl_vars['list']['paixu']; ?>
'<?php endif; ?> /> <span class="text-hint normal">越大越靠前</span></td>
</tr>
<tr>
  <td>许愿灯名称:<font color="red">*</font></td>
  <td><input type='input' name='title' class="text error" errormsg='名称不能为空！' vali='notempty' <?php if (empty ( $this->_tpl_vars['list']['title'] )): ?>value=' '<?php else: ?>value='<?php echo $this->_tpl_vars['list']['title']; ?>
'<?php endif; ?> /> <span class="text-hint normal">许愿灯名称不能为空！</span></td>
</tr>

<tr>
  <td>图片地址:<font color="red">*</font></td>
  <td><input type='file' name='img' class="text"  value='' /> <span class="text-hint normal">页面展示的图片：<?php echo $this->_tpl_vars['list']['img']; ?>
</span></td>
</tr>
<tr>
  <td>灯祝福词1:<font color="red">*</font></td>
  <td><input type='input' name='dengci1' class="text error"  errormsg='祝福词不能为空！' vali='notempty'  <?php if (empty ( $this->_tpl_vars['list']['dengci1'] )): ?>value=' '<?php else: ?>value='<?php echo $this->_tpl_vars['list']['dengci1']; ?>
'<?php endif; ?> /> <span class="text-hint normal">4个字显示在第一行。</span></td>
</tr>
<tr>
  <td>灯祝福词2:<font color="red">*</font></td>
  <td><input type='input' name='dengci2' class="text error"  errormsg='祝福词不能为空！' vali='notempty'  <?php if (empty ( $this->_tpl_vars['list']['dengci2'] )): ?>value=' '<?php else: ?>value='<?php echo $this->_tpl_vars['list']['dengci2']; ?>
'<?php endif; ?> /> <span class="text-hint normal">4个字显示在第二行。</span></td>
</tr>

<tr>
  <td>祝福词描述:</td>
  <td><textarea name='desc' class="text"  style="height:50px" /><?php echo $this->_tpl_vars['list']['desc']; ?>
</textarea></td>
</tr>
<tr>
  <td>是否显示: </td>
  <td><input type="radio" name="status" value="1" <?php if ($this->_tpl_vars['list']['status'] == 1): ?>checked<?php endif; ?>>显示  <input type="radio" name="status" value="0" <?php if ($this->_tpl_vars['list']['status'] == 0): ?>checked<?php endif; ?>>隐藏</td>
</tr>

<tr>
  <td colspan='2' align='center' height='30' >
  <input type='hidden' name='dosubmit' value='true'  />
  
  <?php if ($this->_tpl_vars['zhixing']['id']): ?>
  <input type='hidden' name='id' value='<?php echo $this->_tpl_vars['zhixing']['id']; ?>
'  />  
  <?php endif; ?>
      <button type="submit" >提交</button> &nbsp;&nbsp;&nbsp;
      <button type="reset">重设</button>
  </td>
</tr>

</table>
</form>

<!--开始循环-->
<table width="90%" style="margin:10px 30px">

<tr style="border:1px solid #EEE">
<td style="width:50px">编号</td><td>图片</td><td  style="width:50px">排序</td><td  style="width:50px">显示</td><td>管理</td>
</tr>


<?php $_from = $this->_tpl_vars['data_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
               
<tr  style="border:1px solid #EEE">
	<td style="text-align:center"><?php echo $this->_tpl_vars['v']['id']; ?>
</td>
	<td><?php echo $this->_tpl_vars['v']['title']; ?>
<br><img src="<?php echo $this->_tpl_vars['v']['img']; ?>
" style="max-width:300px; max-height:80px"><br>祝福词：<?php echo $this->_tpl_vars['v']['dengci1']; ?>
 <?php echo $this->_tpl_vars['v']['dengci2']; ?>
<br>描述：<?php echo $this->_tpl_vars['v']['desc']; ?>
</td><td><?php echo $this->_tpl_vars['v']['paixu']; ?>
</td><td><?php echo $this->_tpl_vars['v']['status']; ?>
</td><td><a href="?ct=yice_indexad&ac=index&go=1&id=<?php echo $this->_tpl_vars['v']['id']; ?>
">编辑</a></td>
</tr>

<?php endforeach; endif; unset($_from); ?>


</table>


</div>


</body>
</html>